# Contributor: Sheila Aman <sheila@vulpine.house>
# Maintainer: Sheila Aman <sheila@vulpine.house>
pkgname=perl-io-async
_pkgreal=IO-Async
pkgver=0.79
pkgrel=0
pkgdesc="Asynchronous event-driven programming"
url="https://metacpan.org/release/IO-Async"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-struct-dumb perl-future"
makedepends="perl-test-refcount perl-test-fatal perl-test-identity perl-module-build"
checkdepends="perl-test-metrics-any"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/$_pkgreal-$pkgver.tar.gz"
options="net" # Required for tests
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare
	perl Build.PL installdirs=vendor
}

build() {
	./Build
}

check() {
	./Build test
}

package() {
	./Build install destdir="$pkgdir"
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="33b5af45933ef402d1d73afaedb2e3d17cb41cf70d844a523a58319f29bb7c3938309c69f1c35ccdcbbb2ca87ab0af8d80bfc063ccb7e1438dbe48ff92ff14e2  IO-Async-0.79.tar.gz"
